package ${packageName};

public class ValidationException extends RuntimeException {
    private Integer code;
    /**
     * @param message
     * @param code
     * @param cause
     */
    public ValidationException(String message, Integer code, Throwable cause){
        super(message, cause);
        this.code = code;
    }


    /**
     * @param message
     * @param code
     */
    public ValidationException(String message, Integer code){
        super(message);
        this.code = code;
    }

    /**
     * @param message
     */
    public ValidationException(String message){
        super(message);
    }

    public Integer getCode() {
        return code;
    }
}
